package io.gitee.zhangbinhub.acp.cloud.helloworld.component

import io.gitee.zhangbinhub.acp.cloud.loadbalancer.AcpServiceInstanceFilter
import org.noear.solon.annotation.Component
import org.noear.solon.cloud.model.Instance
import org.noear.solon.core.handle.Context

@Component(index = 0)
class CustomerFilterA : AcpServiceInstanceFilter {
    override fun filterInstance(context: Context?, instances: MutableList<Instance>): MutableList<Instance> {
        println(">>>>>>>> CustomerFilterA")
        println(context?.headerMap()?.toString())
        return instances
    }
}
